# -*- coding: utf-8 -*-
# @Time    : 2021/8/31 23:44
# @Author  : BrandonGT
# @FileName: 11_PyQt5_QTextEdit.py

import sys
from PyQt5.QtWidgets import *


class Window(QWidget):
    def __init__(self):
        super().__init__()  # 初始化继承的父类内部的__init__
        self.setWindowTitle("QTextEdit的学习")
        self.resize(300, 300)
        self.setup_ui()

    def setup_ui(self):
        tx = QTextEdit("asdasd", self)
        tx.resize(200, 200)

if __name__ == '__main__':
    app = QApplication(sys.argv)
    window = Window()
    window.show()
    sys.exit(app.exec_())